PCA Index Dashboard Examples

PCA Index Dashboard Examples#

This script was last run at 2024-03-20 10:11:23.263385+00:00 (UTC)
In US/Central Time, this is 2024-03-20 05:11:23.263385-05:00
## Visualize Principal Component 1
pc1, loadings = pca_index.pca(dfn, module="scikitlearn")
pc1.plot();
../_images/44853c14e589efaf37ddba66b83aa7871c60badd70fb2a4c3643370fe5ca0d63.png
# Simple version
fig = px.line(pc1)
fig.show()
vix = df.loc[:,['VIX']]
vix.plot()
<Axes: xlabel='DATE'>
../_images/2b5d1771294bd38864812ac015886c5d360635c3b9cc63a0dbd0183068ed2a71.png
fig = px.line(vix)
fig.show()
../_images/fdd9690d416756083ede8fb418a6015ee3919d8b88a76870114af5061a80e95d.png